<?php

namespace Logic\Model;


use Core\Singleton;

class ConfigModel extends BaseModel
{
    use Singleton;

    function getConfig($where){
        $this->where('config_name', $where['config_name']);
        $this->where('config_status', $where['config_status']);
        $re = $this->getOne();
        if($re){
            $re['config_config'] = json_decode($re['config_config'], true);
        }

        return $re;
    }
}